<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // setTimeout(() => {
    //     console.log("我是第一步操作");
    // }, 5000)
    // console.log("我是第二步操作");
    const pro = new Promise((success, reject) => {
        setTimeout(() => {
            console.log("我是第一步操作");
            var menuList = [{
                name: '特色套餐'
            }]
            success(menuList)
        }, 5000)
    })
    pro.then((res) => {
        console.log("我是第二步操作", res);
    })
</script>

</html>